import Vue from 'vue'
import App from './App.vue'
import router from './router'
/* 导入ele */
/* 整体引入 */
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);

/* 按需引入 */
// import {Button,Switch,Input} from 'element-ui'
// Vue.component("Button",Button)
// Vue.use(Button)
// Vue.use(Switch).use(Input)
import './components/global'
import plugins  from  './components/index'
Vue.use(plugins)


// import common  from  './components/common.vue'
// Vue.component("comm",common)
Vue.config.productionTip = false

/* mixin  组件上有共同的数据或者方法都可以类似封装
a.vue  =={{n}}

  methods:{}
  data(){
    return {n:1}
  }

b.vue    {{n}}
  data(){
    return {n:1}
  }
 */
//  import mixin  from  './mixin/index.js'
//  Vue.mixin(mixin)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
